#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>


int main(int argc, char *argv[])
{

	pid_t pid;

	pid = fork();
	if (pid > 0) {
		printf("Parent: pid=%d, tid=%d\n", getpid(), syscall(SYS_gettid));
	} else if (pid == 0) {
		printf("Child: pid=%d, tid=%d\n", getpid(), syscall(SYS_gettid));
	} else {
		printf("Create process failed\n");
	}

	return 0;
}
